-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: use server time for calling (WPB-10979) #3017
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3017 +/- ##
===========================================
- Coverage 52.52% 52.43% -0.10%
===========================================
Files 1305 1309 +4
Lines 50225 50337 +112
Branches 4680 4671 -9
===========================================
+ Hits 26383 26392 +9
- Misses 21956 22057 +101
- Partials 1886 1888 +2
... and 21 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Datadog ReportBranch report: ✅ 0 Failed, 3113 Passed, 106 Skipped, 20.43s Total Time |
logic/src/commonMain/kotlin/com/wire/kalium/logic/util/ServerTimeHandler.kt
Outdated
Show resolved
Hide resolved
logic/src/commonMain/kotlin/com/wire/kalium/logic/util/ServerTimeHandler.kt
Show resolved
Hide resolved
Bencher Report
Click to view all benchmark results
|
@ohassine can you please fix the conflicts |
…or-calling # Conflicts: # logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/UserSessionScope.kt
Quality Gate passedIssues Measures |
* fix: use server time for calling * chore: address comments * fix: get serverTime after websocket is connected * chore: cleanup * chore: broken unit test
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
No call notifications incoming if device time is not correct
Causes (Optional)
If device time is different from the server, AVS will return
shouldRing
flag as false causing the app to not show any incoming call notificationSolutions
On event processing we calculate time offset that will be used later to get server time
Edit:
I changed the logic so now we get serverTime by fetching
/notifications
api with onlyquerySize
value.Dependencies (Optional)
If there are some other pull requests related to this one (e.g. new releases of frameworks), specify them here.
Needs releases with:
Testing
Test Coverage (Optional)
How to Test
Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.
Notes (Optional)
Specify here any other facts that you think are important for this issue.
Attachments (Optional)
Attachments like images, videos, etc. (drag and drop in the text box)
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.